package com.xinqi.modules.chat.chat.friend.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 好友列表实体层
 *
 * @author: system
 * @date: 2023/01/12
 */
@Setter
@Getter
@TableName("ca_chat_friend")
public class ChatFriendEntity extends BaseEntity {

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @NotNull(message = "缺少用户Id")
    private Long userId;
    /**
     * 好友id
     */
    @TableField(value = "friend_id")
    @NotNull(message = "缺少好友Id")
    private Long friendId;
    /**
     * 重命名好友昵称
     */
    @TableField(value = "renames")
    private String renames;
    /**
     * 聊天背景
     */
    @TableField(value = "background")
    private String background;
    /**
     * 消息置顶标志 0否 1是
     */
    @TableField(value = "is_top")
    private Integer isTop;
    /**
     * 置顶时间
     */
    @TableField(value = "top_time")
    private LocalDateTime topTime;
    /**
     * 消息免打扰标志 0否 1是
     */
    @TableField(value = "is_disturb")
    private Integer isDisturb;
    /**
     * 设置隐藏回话(有新消息自动打开) 0关闭 1打开
     */
    @TableField(value = "hidden_chat")
    private Integer hiddenChat;
    /**
     * 星标标志   0否  1是
     */
    @TableField(value = "star_mark")
    private Integer starMark;
    /**
     * 1是新奇号，2是手机号，3扫码添加，4课程板块信息添加,5群聊添加
     */
    @TableField(value = "comnon")
    private Integer comnon;
    /**
     * 0:聊过天 1:正常 2黑名单
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 是否是好友   0否  1是
     */
    @TableField(value = "is_friend")
    private Integer isFriend;

}
